package info.webest.media.radio.comparators;

import info.webest.media.radio.OwnList;
import info.webest.media.radio.classes.Station;

import java.util.Comparator;

public class StationsComparatorByOwn implements Comparator<Station> {
	@Override
	public int compare(Station lhs, Station rhs) {
		Boolean l = OwnList.isOwn(lhs.getId());
		Boolean r = OwnList.isOwn(rhs.getId());
		return r.compareTo(l);
	}
}
